package com.zsrt.java.day20161223.xww.demo03;

import java.util.Scanner;

import org.junit.Test;

public class CompareMax {

	@Test
	public void test03(){
		Scanner sc=new Scanner(System.in);
		System.out.println("请输入第一个数a:");
		int a=sc.nextInt();
		
		System.out.println("请输入第二个数b");
		int b=sc.nextInt();
		
		sc.close();
		boolean result=a>b;
		if(result){
			System.out.println("最大值MAX:"+a);
		}else{
			System.out.println("最大值MAX:"+b);
		}
	}
}
